package com.taobao.client.buyer;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 
 * @author jiangyongyuan@use.com.cn 
 *
 */
public class StatusMap {
	// The status map
	public static Map<String, String> statusMap;
	// Initialize statusMap
	static {
		statusMap = new HashMap<String, String>();
		statusMap.put("TRADE_NO_CREATE_PAY", "未创建支付宝交易");
		statusMap.put("WAIT_BUYER_PAY", "等待买家付款");
		statusMap.put("WAIT_SELLER_SEND_GOODS", "买家已付款");
		statusMap.put("WAIT_BUYER_CONFIRM_GOODS", "卖家已发货");
		
		statusMap.put("TRADE_BUYER_SIGNED", "买家已签收");
		statusMap.put("TRADE_FINISHED", "交易成功");
		statusMap.put("TRADE_CLOSED", "交易关闭");
		statusMap.put("TRADE_CLOSED_BY_TAOBAO", "交易被淘宝关闭");
		
		statusMap.put("ALL_WAIT_PAY", "等待买家付款/没有创建支付宝交易");
		statusMap.put("ALL_CLOSED", "交易被淘宝关闭/交易关闭");
		
		// Refund status.
		statusMap.put("WAIT_SELLER_AGREE", "退款协议等待卖家确认中");
		statusMap.put("WAIT_BUYER_RETURN_GOODS", "退款协议达成，等待买家退货");
		statusMap.put("WAIT_SELLER_CONFIRM_GOODS", "买家已经退货，等待卖家确认收货");
		statusMap.put("CLOSED", "退款关闭");
		
		statusMap.put("SUCCESS", "退款成功");
		statusMap.put("SELLER_REFUSE_BUYER", "卖家不同意协议，等待买家修改");
		
		// Goods status
		statusMap.put("BUYER_NOT_RECEIVED", "买家未收到货");
		statusMap.put("BUYER_RECEIVED", "买家已收到货");
		statusMap.put("BUYER_RETURNED_GOODS", "买家已退货");
	}
	public static String get(String s){
		return statusMap.get(s);
	}
}
